package com.excellence.service;

import com.excellence.pojo.KnowledgeBase;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
 * @author 徐瑞琪
 */

public interface KnowledgeBaseService {

    //添加知识
    void insert(KnowledgeBase record, List<MultipartFile> files);

    //根据ID查看知识
    KnowledgeBase selectById(Integer id);

    //根据知识类型查找知识
    List<KnowledgeBase> selectByKnType(String knType);

    //查看所有知识
    List<KnowledgeBase> selectAll();

    //根据id删除知识
    void deleteById(Integer id);

    //修改数据
    void updateHaveFile(KnowledgeBase record, List<MultipartFile> files);


}
